package com.yunsc.system.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.system.entity.YunscStoreUserEntity;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-01-13 19:22
 */
@Data
@ToString
public class StoreUserInfoVO implements Serializable {
    @JsonProperty("userInfo")
    private YunscStoreUserEntity userInfo;
    private Roles roles;

    @Data
    public static class Roles implements Serializable {
        @JsonProperty("isSuper")
        private int isSuper;
        private List<Permission> permissions;
    }

    @Data
    public static class Permission {
        @JsonProperty("actionEntitySet")
        private List<ChildPer> actionEntitySet;
        private String name;
        @JsonProperty("permissionId")
        private String permissionId;
    }

    @Data
    public static class ChildPer {
        private String action;
        private String describe;

    }
}
